﻿#include "dxstdafx.h"
#include "ProvincePositions.h"

_stProvincePosition::_stProvincePosition()
{
	position.reserve(c_nPositionArrayNum * 2);
	rotation.reserve(c_nPositionArrayNum);
	height.reserve(c_nPositionArrayNum);
}

const _stProvincePosition* CProvincePosition::GetProvincePosition(DWORD id) const
{
	auto iterFind = m_mapProvincePosition.find(id);
	if (m_mapProvincePosition.end() == iterFind)
	{
		return nullptr;
	}
	return &iterFind->second;
}

bool CProvincePosition::IsDataComplete() const
{
	for (const auto& it : m_mapProvincePosition)
	{
		if (it.second.position.empty())
		{
			return false;
		}
	}
	return true;
}
